package com.abhinav;

import java.util.Arrays;

public class Test {

	public static void main(String[] args) {
		UnsafeStates us = new UnsafeStates();
		String[] states = us.getStates();
		System.out.println(Arrays.toString(states));
		
		states[1] = "XY";
		
		System.out.println(Arrays.toString(states));
		System.out.println(Arrays.toString(us.getStates()));
	}

}

class UnsafeStates {
	private String[] states = new String[] { "AK", "AL" };

	public String[] getStates() {
		return states;
	}
}
